package jspSamples.unit7.websiteSample;

import jspSamples.unit7.websiteSample.DBConnection;
import jspSamples.unit7.websiteSample.Function;

import java.sql.Connection;
import java.sql.SQLException;

public class Login {
    DBConnection DBconn  =  new DBConnection();
    Function Fun =  new Function();

    public boolean LoginCheck(String s1 ,String s2) throws SQLException {
        Connection conn = DBconn.getConn();
        /* 设置默认值*/
        boolean OK= true;
        Boolean isboolean = Fun.CheckLogin(conn, s1, s2);
        return isboolean;
    }
}